﻿#include "widget_startup.h"
#include "ui_widget_startup.h"

#include <QtWidgets>

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif


WidgetStartup::WidgetStartup(QWidget* parent)
	: QWidget(parent)
	, ui(new Ui::WidgetStartup)
{
	ui->setupUi(this);

	setStyleSheet("border-color: black;");

    //ui->widget->addGraph();
    ui->widget->AddNewPlot("", QVector<double>(), QVector<double>());

	ui->widget->xAxis->setLabel("转矩");
	ui->widget->yAxis->setLabel("转速");
	ui->widget->xAxis->setVisible(true);
	ui->widget->yAxis->setVisible(true);

	ui->widget->yAxis->setUpperEnding(QCPLineEnding::esFlatArrow);
}

WidgetStartup::~WidgetStartup()
{
	delete ui;
}
